#ifndef _SpecialStr_H_
#define _SpecialStr_H_
#include "Object.h"
#include <QString>

class SpecialStr: public Object
{
public:
    SpecialStr(const QString & strp, int beginLinep, int beginColp, int endLinep, int endColp, int spos, int epos):
        Object(),
        str(strp),
        beginLine(beginLinep),
        beginCol(beginColp),
        endLine(endLinep),
        endCol(endColp),
        startPos(spos),
        endPos(epos)
    {
    }
    virtual ~SpecialStr()
    {
    }

    QString toString()
    {
        return str;
    }

    int getBeginCol()
    {
        return beginCol;
    }

    int getBeginLine()
    {
        return beginLine;
    }
public:
    QString str;
    int beginLine;
    int beginCol;
    int endLine;
    int endCol;
    int startPos;
    int endPos;
};

typedef QSharedPointer<SpecialStr> SpecialStrPtr;
#endif
